//
//  YMCommentViewCell.m
//  YMCommentDemo
//
//  Created by lantaiyuan on 2017/2/24.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import "YMCommentViewCell.h"
#import "YMCommentModel.h"

@interface YMCommentViewCell ()
@property (nonatomic, weak) IBOutlet UIImageView *imgView;
@property (nonatomic, weak) IBOutlet UILabel *titleLabel;
@end

@implementation YMCommentViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setCommentModel:(YMCommentModel *)commentModel{
    _commentModel = commentModel;
    _imgView.image = [UIImage imageNamed:commentModel.image];
    _titleLabel.text = commentModel.title;
}
@end
